import Vue from "vue";
import Router from "vue-router";


import login from '../views/login'
import Home from "../views/home"
import Consult from "../views/consult"
import Mine from "../views/mine"
import Sign from "../views/sign"
import User from "../views/mine/user"
import File from "../views/mine/files"
import Record from "../views/mine/record"
import Service from "../views/mine/service"
Vue.use(Router);

export default new Router({
    mode: "history",
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/login',
            component: login
        },
        {
            path: "/home",
            name: "home",
            component: Home
        },
        {
            path: "/consult",
            name: "consult",
            component: Consult
        },
        {
            path: "/sign",
            name: "sign",
            component: Sign
        },
        {
            path: "/mine",
            name: "mine",
            component: Mine
        },
        {
            path: "/mine/user",
            name: "user",
            component: User,
        },
        {
            path: "/mine/files",
            name: "File",
            component: File,
        },
        {
            path: "/mine/record",
            name: "Record",
            component: Record,
        },
        {
            path: "/mine/service",
            name: "Service",
            component: Service,
        }
    ]
});
